<%@include file="head.jsp" %>	
<%@include file="nav.jsp" %>

	
<div id="content_test_url">

	<h1>Testeando la URL de Google con java</h1>
	<%@ page import="java.net.*" %>
	<%
	
   		 URL myURL = new URL("https://www.google.es/");		 
	%>
	
	<ol>
		<li>
			<span>url:</span>
			<span class="valor"><%=myURL %></span>
		</li>
		<li>
			<span>host:</span>
			<span class="valor"><%=myURL.getHost()%></span>
		</li>
		<li>
			<span>port:</span>
			<span class="valor"><%=myURL.getPort()%></span>
		</li>
		<li></li>
		<li></li>
	</ol>
	
	<div class="content_html">
		
	</div>

</div>

<%@include file="footer.jsp" %>		